FROM bewithmeallmylife/11.4-cudnn8-runtime-ubuntu18.04-conda:1.0.0
USER root
ENV PATH /root/anaconda3/bin:$PATH
RUN conda update conda -y
RUN conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
RUN conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
RUN conda config --set show_channel_urls yes
RUN conda create -n python3.8 python=3.8 numpy pandas -y
SHELL ["conda", "run", "-n", "python3.8", "/bin/bash", "-c"]


RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 'A4B469963BF863CC'

RUN  apt-get update
ENV TIME_ZONE Asia/Shanghai
ENV DEBIAN_FRONTEND=noninteractive
ENV  LIBGL_ALWAYS_INDIRECT=1

RUN  apt-get install      ffmpeg  -y
RUN  apt-get install      libgl1-mesa-glx -y
RUN  apt-get install      libxss1 -y
RUN  apt-get install      libappindicator1 -y
RUN  apt-get install      libindicator7 -y
RUN  apt-get install      libjpeg8-dev -y
RUN  apt-get install      libpng-dev -y
RUN  apt-get install      libtiff5-dev -y
RUN  apt-get install      zlib1g-dev -y
RUN  apt-get install      libleptonica-dev -y
RUN  apt-get install      libtesseract-dev -y
RUN  apt-get install      tesseract-ocr -y
RUN  apt-get install      fonts-liberation -y
RUN  apt-get install      libappindicator3-1 -y
RUN  apt-get install      libasound2 -y
RUN  apt-get install      libnspr4 -y
RUN  apt-get install      libnss3 -y
RUN  apt-get install      xdg-utils -y
RUN  apt-get install      libcanberra-gtk-module -y
RUN  apt-get install      tcl-dev -y
RUN  apt-get install      tk-dev -y
RUN  apt-get install      python3-tk -y
RUN  apt-get install      dbus -y
RUN  apt-get install      locales -y
RUN  apt-get install      ttf-wqy-microhei -y
RUN  apt-get install      language-pack-zh-hans -y


RUN apt-get install  python3-pyqt5 -y

RUN pip install PyQt5 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com